package com.zanfeng.signleplatform.provider.modules.token;

import com.zanfeng.signleplatform.api.service.modules.token.TokenService;
import com.zanfeng.signleplatform.common.auth.ApiTokenResult;
import com.zanfeng.signleplatform.provider.utils.TokenUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/3/28 0028.
 */
@Service
public class TokenServiceImpl implements TokenService {

    private final Logger logger = LoggerFactory.getLogger(TokenUtil.class);

    @Autowired
    private TokenUtil tokenUtil;

    @Override
    public ApiTokenResult checkToken(String tokenPrefix, String token) {
        return tokenUtil.checkToken(tokenPrefix, token);
    }

}
